import Vue from 'vue'
import App from './App.vue'
import router from './router'
import local from '@/utils/local'
import '@/assets/fonts/iconfont.css'
// bus中介
Vue.prototype.$bus = new Vue;
import '@/assets/css/normalize.css'

import ElementUI from 'element-ui'; // JS组件
import 'element-ui/lib/theme-chalk/index.css'; // 组件的css
Vue.use(ElementUI); // 注册一下

Vue.config.productionTip = false


// 自定义指令
Vue.directive('premission', {
  inserted: function (el, data) {
    if (!data.value.includes(local.get('role'))) {
      el.remove()
    }
  }
})


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
